import startPageImg from '../../assets/startPage.jpg'
import startBtnImg from '../../assets/startBtn.png'
import { defineComponent,h, reactive } from '@vue/runtime-core'

export default defineComponent({
    setup(props,ctx){
        const handleClick = () => {
          ctx.emit('changePage','gamePage')
        }
        return { handleClick }
    },
    render(ctx){
        return h('Container', [
            h('Sprite',{
                texture: startPageImg}),
            h('Sprite',{
                texture:startBtnImg, 
                x:226, 
                y:513, 
                interactive:true,
                onClick:ctx.handleClick
            })])
    }
})

